<template>
	<view class="uni-global-box">
		<view class="uni-global-title">
			高级表格
		</view>
		<view class="body">
				 
			<u-table class="u-table-senior" >
					<u-tr style="margin-right:15px;" class="sticky-table-th" >
						<u-th class="u-table-th " width="150px">高级用法</u-th>
						<u-th class="u-table-th " width="150px">学校</u-th>
						<u-th class="u-table-th " width="150px">班级</u-th>
						<u-th class="u-table-th " width="150px">年龄</u-th>
						<u-th class="u-table-th " width="150px">时间</u-th>
						<u-th class="u-table-th " width="150px">时间</u-th>
						<u-th class="u-table-th " width="150px">学校</u-th>
						<u-th class="u-table-th " width="150px">时间</u-th>
						<u-th class="u-table-th " width="150px">时间</u-th>
						<u-th class="u-table-th " width="150px">学校</u-th>
						<u-th class="u-table-th " width="150px">时间</u-th>
						<u-th  width="150px" class="sticky-right sticky-table-th sticky-shadow" >操作</u-th>
					</u-tr>
					<u-tr  v-for="(item,index) in tableData02" :key="index"
						class="u-table-tr  "
					>
						<u-td class="u-table-td" width="150px">{{index<9?'0':''}}{{index +1 }}</u-td>
						<u-td class="u-table-td" width="150px">{{item.name}}</u-td>
						<u-td class="u-table-td" width="150px">{{item.money}}</u-td>
						<u-td class="u-table-td" width="150px">{{item.notice}}</u-td>
						<u-td class="u-table-td " width="150px">{{item.date}}</u-td>
						<u-td class="u-table-td " width="150px">{{item.date}}</u-td>
						<u-td class="u-table-td" width="150px">{{item.name}}</u-td>
						<u-td class="u-table-td " width="150px">{{item.date}}</u-td>
						<u-td class="u-table-td " width="150px">{{item.date}}</u-td>
						<u-td class="u-table-td" width="150px">{{item.notice}}</u-td>
						<u-td class="u-table-td " width="150px">{{item.date}}</u-td>
						<u-td class="u-table-td sticky-right sticky-shadow " width="150px">
							<view class="u-table-td-util">
								<u-button size="mini" >
									<text class="iconfont icon-xiugai"></text>
									<text>修改</text>
								</u-button>
								<u-button size="mini" >
									<text class="iconfont icon-shuliang-zengjia"></text>
									<text>添加</text>
								</u-button>
							</view>
							
						</u-td>
					</u-tr>
			</u-table>
			<view class="u-table-senior-pagination">
				<uni-pagination title="标题文字" total="20"></uni-pagination>
			</view>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tableData02:[
					{name:"test2",money:"0.00",notice:'note',date:'2010-05-24'},
					{name:"test3",money:"200.00",notice:'Admin',date:'2010-05-24'},
					{name:"test4",money:"210.00",notice:'ote3ote3',date:'2010-05-24'},
					{name:"test5",money:"300.0",notice:'note2',date:'2010-05-24'},
					{name:"test15",money:"400.00",notice:'qiuuntion',date:'2010-05-24'},
					{name:"test88",money:"20.00",notice:'note2',date:'2010-05-24'},
					{name:"test2",money:"0.00",notice:'note',date:'2010-05-24'},
					{name:"test3",money:"200.00",notice:'Admin',date:'2010-05-24'},
					{name:"test4",money:"210.00",notice:'ote3ote3',date:'2010-05-24'},
					{name:"test5",money:"300.0",notice:'note2',date:'2010-05-24'},
					{name:"test15",money:"400.00",notice:'qiuuntion',date:'2010-05-24'},
					{name:"test88",money:"20.00",notice:'note2',date:'2010-05-24'},
				]
			}
		},
		onLoad() {
			uni.getSystemInfo({
				success: function (res) {
					console.log(res)
				}
			});
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss" >
	@import url("/common/css/ui-table.scss");
	
	.body{
		display: grid;
		gap: 10px;
	}
</style>